**************************************************
**************************************************
********** Main Tables & Figures *****************
**************************************************
**************************************************

set more off
set matsize 800
set emptycells drop

**************************************************
************ SET UP GLOBALS 	******************
**************************************************

********** Main path:
global data 			=" "
global dofile 			=" "
cd " "

********** Main control variables: 
global MainQTE 			="quarter_to_exhaustion_plus3  quarter_to_exhaustion_plus2 quarter_to_exhaustion_plus1 quarter_to_exhaustion_0 quarter_to_exhaustion_minus1 quarter_to_exhaustion_minus2 quarter_to_exhaustion_minus3 quarter_to_exhaustion_minus4"
global OtherQTE 		="quarter_to_exhaustion_plus8 quarter_to_exhaustion_plus7 quarter_to_exhaustion_plus6 quarter_to_exhaustion_plus5   quarter_to_exhaustion_minus5 quarter_to_exhaustion_minus6 quarter_to_exhaustion_minus7 quarter_to_exhaustion_minus8  "
global SpellTimeFE 		="quarter_2 quarter_3 quarter_4 quarter_5 quarter_6 quarter_7 quarter_8 quarter_9 quarter_10 quarter_11 quarter_12 quarter_13"

********** Control variables interacted with "low wage" dummy: 
global OtherQTE_low 	="low_quarter_to_exhaustion_plus8 low_quarter_to_exhaustion_plus7 low_quarter_to_exhaustion_plus6 low_quarter_to_exhaustion_plus5   low_quarter_to_exhaustion_minus5 low_quarter_to_exhaustion_minus6 low_quarter_to_exhaustion_minus7 low_quarter_to_exhaustion_minus8  "
global SpellTimeFE_low  ="low_quarter_2 low_quarter_3 low_quarter_4 low_quarter_5 low_quarter_6 low_quarter_7 low_quarter_8 low_quarter_9 low_quarter_10 low_quarter_11 low_quarter_12 low_quarter_13"
global MainQTE_low  	="low_quarter_to_exhaustion_plus3  low_quarter_to_exhaustion_plus2 low_quarter_to_exhaustion_plus1 low_quarter_to_exhaustion_0 low_quarter_to_exhaustion_minus1 low_quarter_to_exhaustion_minus2 low_quarter_to_exhaustion_minus3 low_quarter_to_exhaustion_minus4"

********** Main invididual covariates: 
global X_ind 			="age_1 age_2 age_3 age_4 age_5  amount_benefit_monthly_* past_duration_*  ind_exp_2 ind_exp_3 ind_exp_4 ind_exp_5   man_kid woman_nokid man_nokid ind_full_time   ind_single  ind_nb_children  ind_no_diploma ind_highschool  ind_middleschool  ind_superior ind_technical  ind_intermediary  ind_management  ind_blue_skill ind_white_low_skill ind_white_skill "

**************************************************
************ PRODUCE RESULTS	******************
**************************************************

do "${dofile}11_Table1"
do "${dofile}12_Table2"
do "${dofile}13_Table3_Table4"
do "${dofile}14_Table5_Table6"
do "${dofile}15_Table7"
do "${dofile}16_Figure2_Figure3"
do "${dofile}17_Figure4_Figure5"
